import request, { IResult } from '../utils/request-new'
import { IUser } from './login'

interface ITask{
  id: number, 
  name: string,
  score: number,
  type: string,
  sortNo: number,
  totalNum: number,
  userList: IUser[]
}

// 获取我的案例列表
export const getTaskList = (): Promise<IResult<ITask[]>> => {
  return request<ITask[]>({
    url: '/task/list',
    method: 'GET'
  })
}